﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Vitruvian.Serialization;
using Vitruvian.Logging;
using Vitruvian.Testing;

namespace SpotItComponents
{
    public class CardStack
    {
        private List<PlayingCard> playingCards = new List<PlayingCard>();

        public CardStack() { }

        public void AddCard(PlayingCard card)
        {
            playingCards.Add(card);
        }

        public PlayingCard TopCard
        {
            get
            {
                PlayingCard topCard = null;
                if (playingCards.Count > 0)
                    topCard = playingCards[playingCards.Count - 1];
                return topCard;
            }
        }
    }
}
